﻿using EFCore.Models;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using SService;

namespace WMSWeb.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class SyskcallotdetailController : ControllerBase
    {
        private readonly WmssystemContext myDb;
        private readonly SyskcallotdetailS syskcallotdetailS;

        public SyskcallotdetailController(WmssystemContext myDb, SService.SyskcallotdetailS syskcallotdetailS)
        {
            this.myDb = myDb;
            this.syskcallotdetailS = syskcallotdetailS;
        }
        /// <summary>
        /// 调拨明细添加
        /// </summary>
        /// <returns></returns>
        /// 
        [HttpPost]
        public async Task<int> Add(Sys_kc_allot_detail sys_Kc_Allot_Detail)
        {
            return await syskcallotdetailS.Add(sys_Kc_Allot_Detail);
        }

    }
}
